package vo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Staff entity. @author MyEclipse Persistence Tools
 */

public class Staff implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String gender;
	private String telephone;
	@JSONField(format="yyyy/MM/dd")
	private Timestamp employedDate;
	private Integer staffNo;
	private String password;
	private String locked;
	private String remark;
	@JSONField(serialize=false)
	private Set saleorders = new HashSet(0);
	@JSONField(serialize=false)
	private Set payments = new HashSet(0);
	@JSONField(serialize=false)
	private Set roleUsers = new HashSet(0);

	// Constructors

	/** default constructor */
	public Staff() {
	}

	/** minimal constructor */
	public Staff(String name, String gender, String telephone,
			Timestamp employedDate, Integer staffNo, String password,
			String locked) {
		this.name = name;
		this.gender = gender;
		this.telephone = telephone;
		this.employedDate = employedDate;
		this.staffNo = staffNo;
		this.password = password;
		this.locked = locked;
	}

	/** full constructor */
	public Staff(String name, String gender, String telephone,
			Timestamp employedDate, Integer staffNo, String password,
			String locked, String remark, Set saleorders, Set payments,
			Set roleUsers) {
		this.name = name;
		this.gender = gender;
		this.telephone = telephone;
		this.employedDate = employedDate;
		this.staffNo = staffNo;
		this.password = password;
		this.locked = locked;
		this.remark = remark;
		this.saleorders = saleorders;
		this.payments = payments;
		this.roleUsers = roleUsers;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public Timestamp getEmployedDate() {
		return this.employedDate;
	}

	public void setEmployedDate(Timestamp employedDate) {
		this.employedDate = employedDate;
	}

	public Integer getStaffNo() {
		return this.staffNo;
	}

	public void setStaffNo(Integer staffNo) {
		this.staffNo = staffNo;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getLocked() {
		return this.locked;
	}

	public void setLocked(String locked) {
		this.locked = locked;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set getSaleorders() {
		return this.saleorders;
	}

	public void setSaleorders(Set saleorders) {
		this.saleorders = saleorders;
	}

	public Set getPayments() {
		return this.payments;
	}

	public void setPayments(Set payments) {
		this.payments = payments;
	}

	public Set getRoleUsers() {
		return this.roleUsers;
	}

	public void setRoleUsers(Set roleUsers) {
		this.roleUsers = roleUsers;
	}

}